package xyz.syyrjx.blog.entity;

import xyz.syyrjx.blog._enum.State;

import java.util.Date;

public class Comment {
    private Long id;
    private String head;
    private String author;
    private String content;
    private Date create_date;
    private Long blog_id;
    private Long parent_comment_id;
    private Long top_comment_id;
    private Integer state;

    public Comment() {}

    public Comment(Long id, String head, String author, String content, Date create_date, Long blog_id, Long parent_comment_id, Long top_comment_id) {
        this.id = id;
        this.head = head;
        this.author = author;
        this.content = content;
        this.create_date = create_date;
        this.blog_id = blog_id;
        this.parent_comment_id = parent_comment_id;
        this.top_comment_id = top_comment_id;
        this.state = State.NORMAL_STATE.getCode();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateDate() {
        return create_date;
    }

    public void setCreate_date(Date createDate) {
        this.create_date = createDate;
    }

    public Long getBlogId() {
        return blog_id;
    }

    public void setBlog_id(Long blogId) {
        this.blog_id = blogId;
    }

    public Long getParentCommentId() {
        return parent_comment_id;
    }

    public void setParent_comment_id(Long parentCommentId) {
        this.parent_comment_id = parentCommentId;
    }

    public Long getTopCommentId() {
        return top_comment_id;
    }

    public void setTop_comment_id(Long top_comment_id) {
        this.top_comment_id = top_comment_id;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
